package com.wanjia.bpsapi.pojo.entity;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 登陆用户表
 * </p>
 *
 * @author wyn
 * @since 2023-02-13
 */
@Schema(title ="User对象", description = "登陆用户表")
@Data
public class User implements Serializable {

    @Schema(title = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(title = "角色")
    private String role;

    @Schema(title = "用户名")
    private String username;

    @Schema(title = "密码")
    private String password;

    @Schema(title = "手机号")
    private String phone;

    @Schema(title = "状态 0:禁用，1:正常")
    private Integer status;
}
